package com.temp.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.temp.dto.SearchChatDTO;
import com.temp.entity.ChatMessage;
import com.temp.entity.ChatUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ChatMessageMapper extends BaseMapper<ChatMessage> {

    List<ChatUser> findALlUserChats(SearchChatDTO chatDTO);

    Integer countAllUserChat(SearchChatDTO chatDTO);
}
